package com.cloud.core;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.cloud.core.mysql.Connect;

/**
 * 1Cloud1
 * @author Administrator
 * @since 2015-11-4
 * @version 1.0 
 */
@Component("BaseDao")
public class BaseDao {
	@Autowired
	protected Connect Connect;
	
	protected SqlSession getInstance(boolean autoCommit){
		return Connect.getSession(autoCommit);
	}
}
